<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="lib/daterangepicker/daterangepicker.css" /> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>提现列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> <a _href="welcome.html" class="fun-toindex" href="javascript:;">首页</a> 
	<span class="c-gray en">&gt;</span> 提现管理 <span class="c-gray en">&gt;</span> 提现列表 
	<a class="btn btn-success radius r mr-20 reload" style="line-height:1.6em;margin-top:3px" href="javascript:;" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	<span class="r" style="margin-top: -2px; box-sizing: border-box;">

	
		<select name="state" id="state" class="select" style="width: auto; height: 31px; vertical-align: middle;">
			<option value="" selected="">提现状态</option>
			<option value="1">打款成功</option>
			<option value="0">打款失败</option>
		</select>
		
		<div style="display:inline-block; width:380px; position:relative;">
			申请日期：
			<input name="time" type="text" id="date-range1" class="input-text datainp" style="width:300px">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</div>	
		<!-- <div style="display:inline-block; width:380px; position:relative;">
			打款日期：
			<input name="time2" type="text" id="date-range2" class="input-text datainp" style="width:300px">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</div>	 -->

		<span style="position:relative">
			<input type="text" name="k"  placeholder="user_id" style="width:200px" class="input-text">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</span>

		
		<button id="search" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

		<!-- <button id="exportorder" class="btn btn-success">导出EXCEL</button> -->

		
	</span>
</nav>
<div class="pd-20">
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="11">提现列表</th>
			</tr>
			<tr class="text-c sort0">
				<th width="25" class="valueid"><input type="checkbox" name="" value=""></th>
				<th width="40" class="fun-sort2" data-name="id" data-flag="0">ID</th>
				<th >用户名</th>
				<!-- <th width="150">真实姓名</th> -->
				<th width="90" >金额</th>
				<!-- <th width="150">类型</th> -->
				<th width="150">提现单号</th>
				<th width="130">申请时间</th>
				
	
				<th width="100">状态</th>
				<!-- <th>mark</th> -->
				<!-- <th width="100">操作</th> -->
			</tr>
		</thead>
		<tbody id="content_sp">

		</tbody>
	</table>

	<div class="cl pd-5 bg-1 bk-gray mt-20" id="pagelist">
		<!-- <a href="javascript:;" class="btn btn-warning l mr-10 mt-5 radius fun-all" data-type="stop"><i class="Hui-iconfont">&#xe6de;</i> 批量关闭</a> 
		<a href="javascript:;" class="btn btn-success l mr-10 mt-5 radius fun-all" data-type="start"><i class="Hui-iconfont">&#xe603;</i> 批量开启</a> 
		<a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius fun-all" data-type="del"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  
		<a href="javascript:;" onclick="_open('添加提现','admin-add.html','40%','50%',false)" class="btn btn-primary radius l mt-5 mr-20"><i class="Hui-iconfont">&#xe600;</i> 添加提现</a>  -->
		<span class="r" style="line-height: 40px;" id="dataall"></span> 
		<span class="r" style="line-height: 40px;" id="page"></span> 
	</div>

</div>
<!-- 列表模版 -->
<script id="test" type="text/html">
<% for (x in list) { %>
	<tr class="text-c adminlist sort1">
		<td class="valueid"><input type="checkbox" value="<%=list[x].balance_id%>" name=""></td>
		<td><%=list[x].balance_id%></td>
		<td><%=list[x].user_name%> (<%=list[x].uid%>)</td>
		<!-- <td><%=list[x].realname%></td> -->
		<td><%=list[x].cost%></td>
		<!-- <td><%=list[x].type%></td> -->
		<td><%=list[x].number%></td>
		<td><%=list[x].time%></td>

		<td class="td-state">
			<%if(list[x].state==1){%>
				<span>提现</span>
			<%}else{%>
				<span style="color: #ff0000;">未提现</span>
			<%}%>
			<!-- <div class="bs-docs-example btn-isshow">
				<input type="checkbox" class="switch fun-start-stop" <%if(list[x].admin_state==1){ %>checked<% } %>/>
			</div> -->
		</td>
		<!-- <td><%=list[x].mark%></td> -->
		<!-- <td class="td-manage f-18">
			<a title="编辑" href="javascript:;" onclick="_open('提现编辑','admin-add.html?editid=<%=list[x].balance_id%>','60%','50%',false)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
			<a style="text-decoration:none" class="ml-5 fun-del" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i>
	
		</td> -->
	</tr>
<% } %>
</script>	
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/moment.min.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/jquery.daterangepicker.js"></script>
<script type="text/javascript" src="lib/laypage/laypage.js"></script>
<script src="/Manage/js/lazyload.min.js"></script>
<script type="text/javascript">
var API=API_GETCASH;
var kk=API;
var orderby='';
var search='';

loaddata(API,1);
$('#date-range1').dateRangePicker({
	startOfWeek: 'monday',
	separator : ' 至 ',
	format: 'YYYY-MM-DD HH:mm',
	autoClose: true,
	time: {
		enabled: true
	},
	defaultTime: moment().startOf('day').toDate(),
	defaultEndTime: moment().endOf('day').toDate()
});

// $('#date-range2').dateRangePicker({
// 	startOfWeek: 'monday',
// 	separator : ' 至 ',
// 	format: 'YYYY-MM-DD HH:mm',
// 	autoClose: true,
// 	time: {
// 		enabled: true
// 	},
// 	defaultTime: moment().startOf('day').toDate(),
// 	defaultEndTime: moment().endOf('day').toDate()
// });

$(document).on('click','#search',function(){
	kk=API+"?";


	var param=[
		'k='+encodeURI(document.querySelector('input[name=k]').value),
		'state='+document.querySelector('select[name=state]').value,
		'time='+document.querySelector('input[name=time]').value,
		// 'time2='+document.querySelector('input[name=time2]').value,
	];
	search=param.join('&');
    kk=kk+search+'&'+orderby;
	loaddata(kk,1);
})

$(document).on('click','#exportorder',function(){
	
	var param=[
		'k='+encodeURI(document.querySelector('input[name=k]').value),
		'state='+document.querySelector('select[name=state]').value,
		'time='+document.querySelector('input[name=time]').value,
		// 'time2='+document.querySelector('input[name=time2]').value,
	];
	param=param.join('&');
	window.open(API_EXPORT_TIXIAN+'?'+param+'&'+orderby);
	console.log(API_EXPORT_TIXIAN+'?'+param+'&'+orderby)
})
</script>
</body>
</html>